import request from "@/router/axios";

export const getWarnList = (current, size, params) => {
  return request({
    url: "/api/blade-measure/measure/gaugefactorwarn/list",
    method: "get",
    params: {
      ...params,
      current,
      size
    }
  });
};

export const getWarn = params => {
  return request({
    url: "/api/blade-measure/measure/gaugefactorwarn/info",
    method: "get",
    params: {
      ...params
    }
  });
};

export const saveWarn = params => {
  return request({
    url: "/api/blade-measure/measure/gaugefactorwarn/save",
    method: "post",
    data: {
      ...params
    }
  });
};

export const updateWarn = params => {
  return request({
    url: "/api/blade-measure/measure/gaugefactorwarn/update",
    method: "post",
    data: {
      ...params
    }
  });
};

export const deleteWarn = params => {
  return request({
    url: "/api/blade-measure/measure/gaugefactorwarn/remove",
    method: "post",
    params: {
      ...params
    }
  });
};
